﻿@{
    ViewBag.Title = "Image List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ImageList</h2>

<table>
    <tr>
        <th>File name</th>
        <th>Image</th>
        <th>Size</th>
    </tr>
@foreach (var uploadedFile in Model)
{
    <tr>
        <td>@uploadedFile.Name</td>
        <td><img src="@uploadedFile.Path" alt="@uploadedFile.Name" title="@uploadedFile.Name" style="width: 200px;" /></td>
        <td>@((float)(uploadedFile.Size / 1024)) KB</td>
    </tr>
}
</table>

